//获取用户集邮进度的服务
import { Injectable } from '@angular/core';
import 'rxjs/add/operator/map';
import 'rxjs/add/operator/toPromise';
import axios from 'axios';
//url config here
import { ConfigService } from './config.service';
@Injectable()
export class stampProgressService{

    

	constructor(){
    }
    
    getStampPro(phone){
        /*var res = {
            "data":{
                 "code":0,
                "msg":{
                    "id1":"1",
                    "id2":"0",
                    "id3":"1",
                    "id4":"0",
                    "id5":"0",
                    "id6":"0",
                    "id7":"0",
                    "id8":"0",
                    "id9":"0",
                    "id10":"1"
                },
                "phone":"18826074359",
                "state":1
            }
        };*/
        return axios({
            method:'post',
            url:"http://yxbsve.mmarket.com/index.php?c=wechat&a=states",
            data:{
                "phone":phone
            },
            headers: {
                "accept": "application/json",
                "content-type": "application/json",
                "cache-control": "no-cache",
            }
        });
        //return res;
    }

}